package com.daJiao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daJiao.entity.SysAgreement;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;


public interface SysAgreementMapper extends BaseMapper<SysAgreement> {

    Optional<SysAgreement> selectByKeyOptional(Object key);

    int updateByUserId(SysAgreement deleteAgreement);

    List<SysAgreement> batchQueryByPatientIds(@Param("patientIds") List<String> patientIds, @Param("userType") Integer userType);

}
